﻿<%@ WebHandler Language="C#" Class="uploadImage" %>

using System;
using System.Web;
using System.IO;

public class uploadImage : AdminHandler
{

    public override void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        if (IsAuthenticate(context))
        {
            context.Response.Write(AdminCore.upload(context, "../../../Upload/Image/News"));
        }
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}